package com.aishua.aishuawallet.bean;


/**
 * Created by aishua on 2018/8/8.
 */

public class ReqTokenCreateBean extends Header implements IRequestString {

    private String Timestamp;
    private String ClientVer;
    private String OptType;
    private String UserMobile;
    private String TokenName;

    public String getTimestamp() {
        return Timestamp;
    }

    public void setTimestamp(String timestamp) {
        Timestamp = timestamp;
    }

    public String getClientVer() {
        return ClientVer;
    }

    public void setClientVer(String clientVer) {

        ClientVer = clientVer;
    }

    public String getOptType() {

        return OptType;
    }

    public void setOptType(String optType) {

        OptType = optType;
    }

    public String getUserMobile() {

        return UserMobile;
    }

    public void setUserMobile(String userMobile) {

        UserMobile = userMobile;
    }

    public String getTokenName() {

        return TokenName;
    }

    public void setTokenName(String tokenName) {
        TokenName = tokenName;

    }

    @Override
    public String requestString() {

        String data = getVersion()+getCommand_ID()+getOrderID()+getSenderCode()+
                Timestamp+ClientVer+OptType+UserMobile+TokenName;
        String hexlength =String.format("%08X",data.length());

        return hexlength+data;

    }
}
